<template>
  <div>
    <!-- 列表 -->
    <v-list :list="list" @willUpdate="willUpdate" @init="init"></v-list>
    <!-- 弹框 -->
    <v-form :status="status" ref="form" @init='init'></v-form>
  </div>
  <!-- 1.拆分组件 -->
</template>
<script>
import { reqmemberlist ,reqmemberinfo} from "../../http/api";
import vList from "./components/list.vue";
import vForm from "./components/form.vue";
import { mixin } from "../../mixins/index";
export default {
  components: {
    vList,
    vForm,
  },
  mixins: [mixin],
  props: [],
  data() {
    return {
      list: [],
    };
  },
  methods: {
    init() {
      reqmemberlist().then((res) => {
        if (res.data.code == 200) {
          this.list = res.data.list ? res.data.list : [];
        }
      });
    },
    addRole() {
      this.addsta();
    },
    
  },
  mounted() {
    //获取管理员列表
    this.init();
  },
  computed: {},
  watch: {},
};
</script>
<style scoped lang="less">
@import "../../less/index.less";
</style>
